package com.baizhi.service;

import com.baizhi.dto.PageDTO;
import com.baizhi.dto.PageDTOs;
import com.baizhi.entity.Category;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
import java.util.List;

public interface CategoryService {
    HashMap<String,Object> queryOnePage(@RequestBody PageDTO pageDTO);

    HashMap<String, Object> delete(@RequestBody Category category);

    HashMap<String, Object> add(@RequestBody Category category);

    Category queryById(String id);

    HashMap<String, Object> update(@RequestBody Category category);

    HashMap<String,Object> queryTwoPage(@RequestBody PageDTOs pageDTOs);

    List<Category> queryByLevelsCategory(Integer levels);
}
